<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<simple-counter></simple-counter>
			<simple-counter></simple-counter>
			<simple-counter></simple-counter>
		</div>
	</body>
	<script type="text/javascript">
		var data = {counter:0}
		Vue.component('simple-counter',{
			template:'<button v-on:click="counter += 1">{{counter}}</button>',
			data:function(){
				return{
					counter:0
				}
			}
		})
		new Vue({
			el:"#app"
		})
	</script>
</html>
